<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script> -->

    <title>Document</title>
</head>
<body>
    <style>
        div.circular{
            width:100px;
            height:100px;
            background:red;
            border-radius: 50%;
            margin-top: 20px;
            text-align: center;
            line-height: 100px;
            color:#fff;
        }
        .bounce-enter-active{animation: Ami .5s;}
        .bounce-leave-active{animation: Ami .5s;}
        @keyframes Ami{
            0%{transform:scale(0);background:red;}
            20%{transform:scale(1);background:burlywood;}
            50%{transform:scale(2);background:blueviolet;}
            100%{transform:scale(3);background:burlywood;}
        }
        </style>
</body>
<script src="vue.js"></script>
    <div id="app">
        <button @click= "show=!show">使用@keyframe创建css动画</button>
        <transition name="bounce">
            <div calss="circular" v-if="show">圆形 </div>
        </transition>
    </div>
<script>
    var vm=new Vue({
        el:"#app",
        data:{
            show:true
        }
    })
    </script>
</html>